package com.tanchengjin.admin.modules.blog.validations;

import javax.validation.constraints.NotEmpty;

public class CategoryValidate {
    private Integer rank;

    @NotEmpty(message = "分类名不能为空")
    private String name;

    private Integer parentId;

    public Integer getRank() {
        return rank;
    }

    public void setRank(Integer rank) {
        this.rank = rank;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }
}